#include <map>
//#include <stdlib.h>
#include <memory.h>
#ifndef FFUSERLIST_H
#define FFUSERLIST_H
/************************************************************************/
/* user data struct                                                                     */
/************************************************************************/
#define MAX_NAMEBUF 50
class FFUserData
{
public:
	unsigned long userAddr;
	unsigned short portno; 
	char username[MAX_NAMEBUF];
	char hostname[MAX_NAMEBUF];
	char groupname[MAX_NAMEBUF];
	char nickName[MAX_NAMEBUF];

	FFUserData()
	{
			userAddr = 0;
			portno   = 0; 
			memset(username,0,MAX_NAMEBUF);
			memset(hostname,0,MAX_NAMEBUF);
			memset(groupname,0,MAX_NAMEBUF);
			memset(nickName,0,MAX_NAMEBUF);
	}
	FFUserData & operator = (const FFUserData & other)
	{
		if(&other == this)
		{
			return *this;
		}
		else
		{
			strcpy(this->username,other.username);
			strcpy(this->hostname,other.hostname);
			strcpy(this->groupname,other.groupname);
			strcpy(this->nickName,other.nickName);
			this->portno = other.portno;
			this->userAddr = other.userAddr;
			return *this;
		}

	}

	
};
#endif
